<template>
	<view class="content" style="padding-bottom:210rpx;">
		<door-navbar :bgColor="'#fff'" :text="'活动详细介绍'" :isDetailIcon="true">
		</door-navbar>
		<view style="width: 686rpx;margin: 0 auto;margin-top:24rpx;padding: 32rpx;color: #333;box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08), 0px 1px 4px rgba(0, 0, 0, 0.04);border-radius: 30rpx;">
			<u-parse class="detail_info" :content="contentHtml"></u-parse>
		</view>		
		<u-toast ref="uToast"></u-toast>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: '',
				title: '',
				content: '',
				contentHtml: '',
				isHtml: '',
				id:'',
				mycontent:{}
			}
		},
		created() {
			this.title = this.$route.query.title;
			this.content = this.$route.query.content;
			this.isHtml = this.$route.query.isHtml;
			this.id = this.$route.query.cid;
			this.getNotice(this.id);
		},
		methods: {
			async getNotice(id) {
				let res = await this.$u.api.getNotice({					
					id: id
				})
				this.contentHtml = res.data.detail;				
			},			
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		// padding-bottom: 50rpx;
		// padding: 0;
		color: #333;
		.title {
			font-size: 32rpx;
			font-weight: bold;
			padding: 20rpx 0;
		}

		.list_title {
			background-color: #fff;
			height: 108rpx;
			border-radius: 16rpx;
		}

		.list_title,
		.list_group {
			width: 100%;
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 24rpx;
			color: #000;
			font-weight: 600;
			padding: 30rpx 0;
			text-align: center;

			.ranking,
			.phone,
			.invitation_count,
			.cret_count {
				width: 25%;
				text-align: center;
			}
		}

		.list_group {
			border-bottom: 2rpx solid #eee;
		}
	}
</style>
